home *** CD-ROM | disk | FTP | other *** search
/ Programming a Multiplayer FPS in DirectX / Programming a Multiplayer FPS in DirectX (Companion CD).iso / Paint Shop Pro / PSP900enTR.exe / Data1.cab / _D9B0D052455142A1AE55AFCFE35AB397 < prev    next >
Encoding:
Text File  |  2004-08-16  |  884 b   |  30 lines

  1. from JascApp import *
  2.  
  3. def ScriptProperties():
  4.     return {
  5.         'Author': '',
  6.         'Copyright': '',
  7.         'Description': '',
  8.         'Host': 'Paint Shop Pro',
  9.         'Host Version': '8.00'
  10.         }
  11.  
  12. def Do(Environment):
  13.  
  14.     # we need at least one image for this to work
  15.     if len(App.Documents) < 1:
  16.         App.Do(Environment,  'MsgBox', {
  17.                 'Buttons': App.Constants.MsgButtons.OK, 
  18.                 'Icon': App.Constants.MsgIcons.Stop, 
  19.                 'Text': 'Command could not complete because there is no active document.'
  20.                 })
  21.         return  
  22.  
  23.     App.Do( Environment, 'VectorAlignCenterInCanvas', {
  24.             'GeneralSettings': {
  25.                 'ExecutionMode': App.Constants.ExecutionMode.Default, 
  26.                 'AutoActionMode': App.Constants.AutoActionMode.Match
  27.                 }
  28.             })
  29.  
  30.